<?php
class SessionBagManager extends \Phalcon\Mvc\User\Component
{
public function getBag($name) {
if (!isset($this->persistent->$name)) {
$this->persistent->$name = new \Phalcon\Session\Bag($name);
}
return $this->persistent->$name;
}
}
I don't know how to destroy a sessionbag, there is no APIs about $this->persistent